package com.wxxymaker.model.table;

import com.wxxymaker.model.entity.Shop;
import com.wxxymaker.model.entity.Stage;
import com.wxxymaker.model.entity.StageCount;

import java.util.ArrayList;
import java.util.List;

/**
 * 公司阶段统计表
 * @Author: Soft
 * @Date: 2018/5/18 19:52
 * @Desc: 用于绘制折线图的实例, 便于返回Json数据
 * 绘制公司所有阶段的统计图
 */
public class ShopStageCountTable {

    private List<Stage> stages;

    private List<ShopInfo> shopInfos = new ArrayList<>();

    public List<Stage> getStages() {
        return stages;
    }

    public void setStages(List<Stage> stages) {
        this.stages = stages;
    }

    public List<ShopInfo> getShopInfos() {
        return shopInfos;
    }

    public void setShopInfos(List<ShopInfo> shopInfos) {
        this.shopInfos = shopInfos;
    }


    public static class ShopInfo {
        // 公司
        private Shop shop;
        // 所有阶段的阶段统计记录
        private List<StageCount> stageCounts = new ArrayList<>();

        public Shop getShop() {
            return shop;
        }

        public void setShop(Shop shop) {
            this.shop = shop;
        }

        public List<StageCount> getStageCounts() {
            return stageCounts;
        }

        public void setStageCounts(List<StageCount> stageCounts) {
            this.stageCounts = stageCounts;
        }
    }
}
